
<script lang="tsx">
import { Component, Prop, Vue } from 'vue-property-decorator'

  @Component({
    name: 'JobStatus'
  })
export default class extends Vue {
    @Prop({ required: true }) private status!: boolean
    render() {
      const { status } = this
      return (
        <div>
          <el-tag type={status ? 'primary' : 'danger'}>{status ? '开启' : '关闭'}</el-tag>
        </div>
      )
    }
}
</script>

<style scoped>

</style>
